//
//  BrokeNewsHeader.h
//  BrokeNew
//
//  Created by ZhouYou on 2018/11/21.
//  Copyright © 2018 higgses_develop. All rights reserved.
//

#ifndef FCBrokeNews_BrokeNewsHeaderBrokeNewsHeader_h
#define FCBrokeNews_BrokeNewsHeaderBrokeNewsHeader_h
/*
// 定义这个常量，就可以不用在开发过程中使用"mas_"前缀。
#define MAS_SHORTHAND
// 定义这个常量，就可以让Masonry帮我们自动把基础数据类型的数据，自动装箱为对象类型。
#define MAS_SHORTHAND_GLOBALS

#import "BaseViewController.h"
#import "masonry.h"
#import <ReactiveCocoa/ReactiveCocoa.h>
//#import "NSString+ping.h"
#import "Tool.h"
#import "ProgressManager.h"
#import <MBProgressHUD.h>
#import "Urls.h"
#import "MBKRequest.h"
#import <MJExtension.h>
#import <MJRefresh.h>
#import <UIImageView+WebCache.h>
//#import "Configure.h"
#import "ScaleTool.h"
#import "UIColor+Extension.h"
#import "APPUserDefaults.h"
#import "UIView+CornerRadius.h"
#import <TMSDK/TMHttpUserInstance.h>
#import "UIButton+WebCache.h"

#define SCREEN_WIDTH CGRectGetWidth([UIScreen mainScreen].bounds)
#define SCREEN_HEIGHT CGRectGetHeight([UIScreen mainScreen].bounds)

#define AnimationTime 2.0f

//设置图片地址url
#define IMGURL(a) [NSURL URLWithString:[NSString stringWithFormat:@"%@%@",[UserCacheInfo shareUser].imgAddress,a]]
#define ImageName(name) [UIImage imageNamed:[@"icon_bundle.bundle" stringByAppendingPathComponent:name]]
#define  FrameworkPatch(name)  [NSString stringWithFormat:@"%@",[@"icon_bundle.bundle" stringByAppendingPathComponent:name]]
//颜色取值
#define ColorFromHex(s) [UIColor colorWithRed:(((s & 0xFF0000) >> 16))/255.0 green:(((s &0xFF00) >>8))/255.0 blue:((s &0xFF))/255.0 alpha:1.0]
#define LightedBlue           ColorRGB(95, 220, 222)
#define ColorWRGB(r,g,b,a)    [UIColor colorWithRed:r/255.0f green:g/255.0f blue:b/255.0f alpha:a]
#define MyBlue                ColorFromHex(0x5791f7)
#define ColorRGB(a,b,c)       [UIColor colorWithRed:a/255.0 green:b/255.0 blue:c/255.0 alpha:1]
#define ColorRGBA(A)          [UIColor colorWithRed:A/255.0 green:A/255.0 blue:A/255.0 alpha:1]
#define Gry_CommonView        ColorRGB(247, 248, 250)
#define Blue_Login            ColorRGB(87, 145, 247)
/*** 颜色 ***
#define kRGBAColor(r,g,b,a) [UIColor colorWithRed:(r)/255.0f green:(g)/255.0f blue:(b)/255.0f alpha:(a)]
// 基数屏幕大小
#define Original_W 375
#define Original_H 667

// 屏幕适应大小（比例）
#define Flexible_W SCREEN_WIDTH / Original_W
#define Flexible_H SCREEN_HEIGHT / Original_H

// 根据屏幕大小修正固定值 (Flexible Numerical)
#define FN(num) [ScaleTool floatWithOriginalFloat:num isFlexibleHeight:NO]

#define kStatusBarH 20
#define kNavigationBarH 44
#define kTabBarH 49
#define kNavAndStatusBarH (kNavigationBarH + kStatusBarH)

// 防止多次调用
#define kPreventRepeatClickTime(_seconds_) \
static BOOL shouldPrevent; \
if (shouldPrevent) return; \
shouldPrevent = YES; \
dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (int64_t)((_seconds_) * NSEC_PER_SEC)), dispatch_get_main_queue(), ^{ \
shouldPrevent = NO; \
}); \
*/
#endif /* BrokeNewsHeader_h */
